package com.microservices.services;

import com.microservices.entity.Department;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(value = "provider8081",path = "/department")
public interface DepartmentFeignServices {

    @GetMapping("/getDepartmentList")
    List<Department> getDepartmentList();
}
